<!-- start header -->
<div id="header"> 
  <div id="logo"> 
    <h1>k-shop</h1>
    <p>powered by MOKA</p>
  </div>
  <div id="search"> 
    <form method="get" action="">
      <fieldset>
      <input id="s" type="text" name="s" value="" />
      <input id="x"
	type="submit" value="Search" />
      </fieldset>
    </form>
  </div>
  <div id="loginfo">
  	<? if($this->user->username ){?>
  		Utente: <? echo $this->user->username ?> (<a href="logout.php">Esci</a>)
        <br />
    Ultimo accesso: <? echo date('j/n/y H:i',$this->user->last_login) ?>
	<? } ?>
  </div>
</div>
<!-- end header -->

<!-- start menu -->
<div id="menu"> 
  <ul>
  
    	<li <? if($_REQUEST[pagina]=='' ) echo "class=\"current_page_item\""; else echo "class=\"disabled_page_item\"";?> ><a href="/admin/"><img  src="/_admin/img/gohome.png" border="0" /> Home page</a></li>
	<?
  	if($this->user->permessi[configurazione]){
  	?>
  	<li <? if($_REQUEST[pagina]=='configurazione') echo "class=\"current_page_item\""; else echo "class=\"disabled_page_item\"";?> ><a href="/admin/configurazione.php"><img  src="/_admin/img/cog.png" border="0" />  Configurazione</a></li>
	<?
    }if($this->user->permessi[prodotto]){
  	?>
  	<li <? if($_REQUEST[pagina]=='prodotto' || $_REQUEST[pagina]=='categoria') echo "class=\"current_page_item\""; else echo "class=\"disabled_page_item\"";?>><a href="/admin/categoria.php"><img  src="/_admin/img/brick.png" border="0" /> Gestione prodotti</a></li>
    <?
    }if($this->user->permessi[ordini]){
  	?>
    <li <? if($_REQUEST[pagina]=='ordini') echo "class=\"current_page_item\""; else echo "class=\"disabled_page_item\"";?>><a href="/admin/ordini.php"><img  src="/_admin/img/page_white_stack.png" border="0" /> Gestione ordini</a></li>    
   	<?
    }if($this->user->permessi[clienti]){
  	?>
    <li <? if($_REQUEST[pagina]=='clienti') echo "class=\"current_page_item\""; else echo "class=\"disabled_page_item\"";?>><a href="/admin/clienti.php"><img  src="/_admin/img/group.png" border="0" />  Gestione Clienti</a></li>
    <?
    }
	?>
  </ul>
</div>
<!-- end menu -->